<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
    xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
    <meta charset="UTF-8">
    <title>Hello World!</title>
</head>
<body>
    <!--<h1>Hello world!</h1>-->
    <!--We display the username by using Spring Security’s integration with HttpServletRequest#getRemoteUser()-->
    <h1 th:inline="text">Hello [[${#httpServletRequest.remoteUser}]]!</h1>
    <form th:action="@{/logout}" method="post">
        <!--The "Sign Out" form submits a POST to "/logout".
        Upon successfully logging out it will redirect the user to "/login?logout".-->
        <input type="submit" value="Sign Out"/>
    </form>
</body>
</html>